<template>
<div>
    <div class="common-form">{{$t('plus.other')}}</div>
    <el-form-item
      :label="$t('plus.event_time')"
      :rules="[{  required: true,  message: $t('plus.select_event_time')}]"
      prop="activeTime"
    >
      <el-date-picker
        v-model="form.activeTime"
        type="datetimerange"
        :range-separator="$t('plus.to')"
        :start-placeholder="$t('plus.start_date')"
        format="YYYY-MM-DD HH:mm:ss"
        value-format="YYYY-MM-DD HH:mm:ss"
        :end-placeholder="$t('plus.end_date')"
      >
      </el-date-picker>
    </el-form-item>
    <el-form-item
      :label="$t('plus.deposit')"
      prop="money"
      :rules="[{  required: true,  message: $t('plus.input_deposit')}]"
    >
      <el-input type="number" v-model="form.money" class="max-w460"></el-input>
    </el-form-item>
    <el-form-item
      :label="$t('plus.purchase_limit_quantity')"
      prop="limitNum"
      :rules="[{  required: true,  message: $t('plus.input_purchase_limit')}]"
    >
      <el-input
        type="number"
        v-model="form.limitNum"
        class="max-w460"
      ></el-input>
    </el-form-item>
    <el-form-item
      :label="$t('plus.sort')"
      prop="sort"
      :rules="[{  required: true,  message: $t('plus.input_sort_order2')}]"
    >
      <el-input type="number" v-model="form.sort" class="max-w460"></el-input>
    </el-form-item>

    <el-form-item :label="$t('plus.review_status')">
      <el-radio-group v-model="form.auditStatus">
        <el-radio :label="10">{{$t('plus.pending_review')}}</el-radio>
        <el-radio :label="20">{{$t('plus.approved_status')}}</el-radio>
        <el-radio :label="30">{{$t('plus.rejected1')}}</el-radio>
      </el-radio-group>
    </el-form-item>
    <el-form-item :label="$t('plus.product_status')">
      <el-radio-group v-model="form.status">
        <el-radio :label="10">{{$t('plus.shelf_on')}}</el-radio>
        <el-radio :label="20">{{$t('plus.shelf_off')}}</el-radio>
      </el-radio-group>
    </el-form-item>
  </div>
</template>

<script>
export default {
  inject: ["form"]
};
</script>

